package server;

import java.io.IOException;

public class Engine {
    private Mapper mapper;

    public Engine(String appBase) {
        mapper = new Mapper(appBase);
    }

    public void init() throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException {
        mapper.init();
    }

    public void start() {
        mapper.start();
    }

    public void process(Request request, Response response) throws Exception {
        mapper.process(request, response);
    }
}
